package com.ly.lw.styledo.fragment;


import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.ly.lw.styledo.R;

/**
 * A simple {@link Fragment} subclass.
 */
public class CategorySecondSizeFragment extends Fragment {

    private int prdNo;//传参

    public CategorySecondSizeFragment() {
        // Required empty public constructor
    }


    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        if (getArguments() != null) {
            prdNo = getArguments().getInt("prdNo");
        }
    }


    public static CategorySecondSizeFragment newInstance(int prdNo) {
        CategorySecondSizeFragment fragment = new CategorySecondSizeFragment();
        Bundle args = new Bundle();
        args.putInt("prdNo", 0);
        fragment.setArguments(args);
        return fragment;
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        View view = inflater.inflate(R.layout.fragment_category_second_size, container, false);
        return view;
    }


    // JSONArray sizeArray = new JSONObject(result).optJSONObject("result").optJSONObject("product").optJSONArray("size_list");
//                    Log.i("info",  "--------"+sizeArray.toString());


}
